#include"TcpServer.hpp"
#include<memory>
#include"Command.hpp"

// std::string Command(std::string command_str)
// {
//     return "hello world";
// }

int main()
{
    EnableConsoleLogStrategy();
    Command cmd;
    std::unique_ptr<TcpServer> tcp = std::make_unique<TcpServer>
    (
        [&cmd](const std::string& command_str)->std::string
        {
            return cmd.Exec(command_str);
        }
    );
    tcp->Init();
    tcp->Start();

    return 0;
}